<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>Insert title here</title>
</head>
<body>
  
  <!-- 导航 -->
    <div class="row">
        <div class="col-md-12">
            <nav class="navbar navbar-default navbar-inverse">
                <div class="container-fluid">
                    <!-- Brand and toggle get grouped for better mobile display -->
                    <div class="navbar-header">
                        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                            <span class="sr-only">Toggle navigation</span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </button>
                        <a class="navbar-brand" href="/index.html">新闻管理</a>
                    </div>

                    <!-- Collect the nav links, forms, and other content for toggling -->
                    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                        <ul class="nav navbar-nav">
                            <li class="active"><a href="./index.html">首页</a></li>
                            <li><a href="./index.html">MySQL</a></li>
                            <li><a href="./index.html">ThinkPHP</a></li>
                            <li><a href="./index.html">PHP</a></li>

                        </ul>
                        <!-- 将搜索表单放在右边 -->

                        <ul class="nav navbar-nav navbar-right">
                            <form class="navbar-form navbar-left" action="./index.html" method="get">
                                <div class="form-group">
                                    <input type="text" class="form-control" placeholder="输入关键字" name="keywords">
                                </div>
                                <button type="submit" class="btn btn-default">搜索</button>
                            </form>
                            <!-- 根据session判断用户是否登录,显示不同的内容 -->
                            <!--没有登录时显示
                            <li><a href="./login.html">登录</a></li>
                            <li><a href="./register.html">注册</a></li>
                            -->
                            <li><a href="./index.html">cqyhm</a></li>
                            <li class="dropdown">
                                <a href="./index.html" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">操作<span class="caret"></span></a>
                                <ul class="dropdown-menu">
                                    <li><a href="articleAdd.html">发布文章</a></li>
                                    <li role="separator" class="divider"></li>
                                    <!-- 跳转到后台的管理中心 -->
                                    <li><a href="userList.html">管理中心</a></li>
                                    <li role="separator" class="divider"></li>
                                    <li><a href="./login.html">退出登录</a></li>
                                </ul>
                            </li>
                        </ul>
                    </div><!-- /.navbar-collapse -->
                </div><!-- /.container-fluid -->
            </nav>
        </div>
    </div>
    <!-- 头部结束-->
  
</body>
</html>